package com.justgame.project.service.system.service;

import com.justgame.project.service.api.entity.SysLog;
import com.justgame.project.service.system.mapper.SysLogMapper;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@AllArgsConstructor
@Slf4j
public class SysLogService {
    @Resource
    private final SysLogMapper logMapper;

    @Async("taskExecutor")
    public void doServerLog(SysLog logs) {
        logMapper.insertLog(logs);
    }


}
